<template>
  <div class="tab-content">
    <h2>计数器</h2>
    <button @click="count++" class="count-btn">{{ count }}</button>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const count = ref(0)
</script>

<style lang="scss" scoped>
.count-btn {
  padding: 12px 24px;
  font-size: 1.2rem;
  background-color: #4361ee;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s;
}

.count-btn:hover {
  transform: scale(1.05);
}
</style>